import { Component, Input, Output, EventEmitter } from '@angular/core';
import { ChatMessageItem } from '../../pages/chat/entity/chat.entity';

@Component({
  selector: 'chat-footer',
  templateUrl: 'chat-footer.html'
})
export class ChatFooterComponent {

  @Input()
  public items: ChatMessageItem[];

  @Output()
  public emitter = new EventEmitter<ChatMessageItem>();

  constructor() { }

  public onButtonClicked(item) {
    this.emitter.emit(item);
  }

}
